package SecondHomework;

import com.sun.org.apache.bcel.internal.generic.NEW;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.List;
import javax.swing.*;
public class Layout extends JFrame {

    protected JButton jButton1,jButton2,jButton3,jButton4,jButton5,jButton6,jButton7,jButton8,jButton9,jButton0,jButtonExcept,jButtonMultiply,jButtonLess,jButtonplus,jButtonpoint,jButtonEqual,jButtonBack,jButtonCE,jButtonC;

    protected JFrame jFrame=new JFrame("狼窝最强大脑");

    protected JPanel intermediate=new JPanel();

    protected JPanel bottom=new JPanel();

    protected List<String> list= new ArrayList<String>();//用来记录用户输入的数字和操作符

    protected JTextField jTextField=new JTextField(15);//单行输入文本框 15

    public Layout(){

        String[] number={"1","2","3","4","5","6","7","8","9","0","/","*","-","+",".","="};

        jButton1=new JButton(number[0]);

        jButton2=new JButton(number[1]);

        jButton3=new JButton(number[2]);

        jButton4=new JButton(number[3]);

        jButton5=new JButton(number[4]);

        jButton6=new JButton(number[5]);

        jButton7=new JButton(number[6]);

        jButton8=new JButton(number[7]);

        jButton9=new JButton(number[8]);

        jButton0=new JButton(number[9]);

        jButtonExcept=new JButton(number[10]);

        jButtonMultiply=new JButton(number[11]);

        jButtonLess=new JButton(number[12]);

        jButtonplus=new JButton(number[13]);

        jButtonpoint=new JButton(number[14]);

        jButtonEqual=new JButton(number[15]);

        jButtonBack=new JButton("Back");

        jButtonCE=new JButton("CE");

        jButtonC=new JButton("C");

    }





    }



